package com.qing.eduservice.client;

import com.qing.servicebase.utils.ResponseResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * @ClassName Yjx
 * @Description TODO
 * @date 2022/9/11 14:11
 * @Version 1.0
 */
@FeignClient(value = "service-vod" ,fallback = VodFileDegradeFeignClient.class)
@Component
public interface VodClient {

    @DeleteMapping(value = "/eduvod/video/delete/{videoId}")
    public ResponseResult removeVideo(@PathVariable("videoId") String videoId);

    @DeleteMapping(value = "eduvod/video/deletebatch")
    public ResponseResult removeVideoList(@RequestParam("videoIdList") List<String> videoIdList);
}
